<?php
$allhtml = $_POST['allhtml'];
$exmatid = $_POST['nowid'];
$score = $_POST['score'];
require('../../cofd/common.php');
$mysqli = $conn;
$stmt = $mysqli->prepare("UPDATE exam_ans SET anscon = ?,score = ? WHERE lisid = ?");
$stmt->bind_param('sss', $allhtml,$score, $exmatid); 
if($stmt->execute()){
    echo json_encode(array('status' => 200));
}else{
    echo json_encode(array('status' => 500));
}
$stmt->close();
$mysqli->close();